my_set = {'zs','zs','zs','ls','ww','zl'}
print(my_set)# 会乱序

#list --->set
my_set = [1,1,2,2,3,3,4,4,6]
num_set = set(my_set)
print(num_set)

print('---------------------')
my_set={'zs','zs','zs','ls','ww','zl'}
print(my_set)#会乱序
#add为集合添加元素
my_set.add ('tq')
print(my_set)


#遍历my_set
for i in my_set:
    print(i)